3.2.8 \(\int \frac {(c+d x)^3}{a+i a \sinh (e+f x)} \, dx\) [108]

3.2.8.1 Optimal result
3.2.8.2 Mathematica [A] (verified)
3.2.8.3 Rubi [A] (verified)
3.2.8.4 Maple [B] (verified)
3.2.8.5 Fricas [B] (verification not implemented)
3.2.8.6 Sympy [F]
3.2.8.7 Maxima [B] (verification not implemented)
3.2.8.8 Giac [F]
3.2.8.9 Mupad [F(-1)]

3.2.8.1 Optimal result

Integrand size = 23, antiderivative size = 132 \[ \int \frac {(c+d x)^3}{a+i a \sinh (e+f x)} \, dx=\frac {(c+d x)^3}{a f}-\frac {6 d (c+d x)^2 \log \left (1+i e^{e+f x}\right )}{a f^2}-\frac {12 d^2 (c+d x) \operatorname {PolyLog}\left (2,-i e^{e+f x}\right )}{a f^3}+\frac {12 d^3 \operatorname {PolyLog}\left (3,-i e^{e+f x}\right )}{a f^4}+\frac {(c+d x)^3 \tanh \left (\frac {e}{2}+\frac {i \pi }{4}+\frac {f x}{2}\right )}{a f} \]

output
(d*x+c)^3/a/f-6*d*(d*x+c)^2*ln(1+I*exp(f*x+e))/a/f^2-12*d^2*(d*x+c)*polylo 
g(2,-I*exp(f*x+e))/a/f^3+12*d^3*polylog(3,-I*exp(f*x+e))/a/f^4+(d*x+c)^3*t 
anh(1/2*e+1/4*I*Pi+1/2*f*x)/a/f
 
3.2.8.2 Mathematica [A] (verified)

Time = 0.99 (sec) , antiderivative size = 206, normalized size of antiderivative = 1.56 \[ \int \frac {(c+d x)^3}{a+i a \sinh (e+f x)} \, dx=\frac {2 \left (\frac {3 d e^e \left (\frac {e^{-e} (c+d x)^3}{3 d}+\frac {\left (i+e^{-e}\right ) (c+d x)^2 \log \left (1-i e^{-e-f x}\right )}{f}-\frac {2 i d e^{-e} \left (-i+e^e\right ) \left (f (c+d x) \operatorname {PolyLog}\left (2,i e^{-e-f x}\right )+d \operatorname {PolyLog}\left (3,i e^{-e-f x}\right )\right )}{f^3}\right )}{-1-i e^e}+\frac {(c+d x)^3 \sinh \left (\frac {f x}{2}\right )}{\left (\cosh \left (\frac {e}{2}\right )+i \sinh \left (\frac {e}{2}\right )\right ) \left (\cosh \left (\frac {1}{2} (e+f x)\right )+i \sinh \left (\frac {1}{2} (e+f x)\right )\right )}\right )}{a f} \]

input
Integrate[(c + d*x)^3/(a + I*a*Sinh[e + f*x]),x]
 
output
(2*((3*d*E^e*((c + d*x)^3/(3*d*E^e) + ((I + E^(-e))*(c + d*x)^2*Log[1 - I* 
E^(-e - f*x)])/f - ((2*I)*d*(-I + E^e)*(f*(c + d*x)*PolyLog[2, I*E^(-e - f 
*x)] + d*PolyLog[3, I*E^(-e - f*x)]))/(E^e*f^3)))/(-1 - I*E^e) + ((c + d*x 
)^3*Sinh[(f*x)/2])/((Cosh[e/2] + I*Sinh[e/2])*(Cosh[(e + f*x)/2] + I*Sinh[ 
(e + f*x)/2]))))/(a*f)
 
3.2.8.3 Rubi [A] (verified)

Time = 0.79 (sec) , antiderivative size = 146, normalized size of antiderivative = 1.11, number of steps used = 16, number of rules used = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.652, Rules used = {3042, 3799, 25, 25, 3042, 4672, 26, 3042, 26, 4199, 26, 2620, 3011, 2720, 7143}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {(c+d x)^3}{a+i a \sinh (e+f x)} \, dx\)

\(\Big \downarrow \) 3042

\(\displaystyle \int \frac {(c+d x)^3}{a+a \sin (i e+i f x)}dx\)

\(\Big \downarrow \) 3799

\(\displaystyle \frac {\int -(c+d x)^3 \text {csch}^2\left (\frac {e}{2}+\frac {f x}{2}-\frac {i \pi }{4}\right )dx}{2 a}\)

\(\Big \downarrow \) 25

\(\displaystyle -\frac {\int -(c+d x)^3 \text {sech}^2\left (\frac {e}{2}+\frac {f x}{2}+\frac {i \pi }{4}\right )dx}{2 a}\)

\(\Big \downarrow \) 25

\(\displaystyle \frac {\int (c+d x)^3 \text {sech}^2\left (\frac {e}{2}+\frac {f x}{2}+\frac {i \pi }{4}\right )dx}{2 a}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {\int (c+d x)^3 \csc \left (\frac {i e}{2}+\frac {i f x}{2}+\frac {\pi }{4}\right )^2dx}{2 a}\)

\(\Big \downarrow \) 4672

\(\displaystyle \frac {\frac {2 (c+d x)^3 \tanh \left (\frac {e}{2}+\frac {f x}{2}+\frac {i \pi }{4}\right )}{f}-\frac {6 i d \int -i (c+d x)^2 \tanh \left (\frac {e}{2}+\frac {f x}{2}+\frac {i \pi }{4}\right )dx}{f}}{2 a}\)

\(\Big \downarrow \) 26

\(\displaystyle \frac {\frac {2 (c+d x)^3 \tanh \left (\frac {e}{2}+\frac {f x}{2}+\frac {i \pi }{4}\right )}{f}-\frac {6 d \int (c+d x)^2 \tanh \left (\frac {e}{2}+\frac {f x}{2}+\frac {i \pi }{4}\right )dx}{f}}{2 a}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {\frac {2 (c+d x)^3 \tanh \left (\frac {e}{2}+\frac {f x}{2}+\frac {i \pi }{4}\right )}{f}-\frac {6 d \int -i (c+d x)^2 \tan \left (\frac {i e}{2}+\frac {i f x}{2}-\frac {\pi }{4}\right )dx}{f}}{2 a}\)

\(\Big \downarrow \) 26

\(\displaystyle \frac {\frac {6 i d \int (c+d x)^2 \tan \left (\frac {i e}{2}+\frac {i f x}{2}-\frac {\pi }{4}\right )dx}{f}+\frac {2 (c+d x)^3 \tanh \left (\frac {e}{2}+\frac {f x}{2}+\frac {i \pi }{4}\right )}{f}}{2 a}\)

\(\Big \downarrow \) 4199

\(\displaystyle \frac {\frac {6 i d \left (2 i \int \frac {i e^{e+f x} (c+d x)^2}{1+i e^{e+f x}}dx-\frac {i (c+d x)^3}{3 d}\right )}{f}+\frac {2 (c+d x)^3 \tanh \left (\frac {e}{2}+\frac {f x}{2}+\frac {i \pi }{4}\right )}{f}}{2 a}\)

\(\Big \downarrow \) 26

\(\displaystyle \frac {\frac {6 i d \left (-2 \int \frac {e^{e+f x} (c+d x)^2}{1+i e^{e+f x}}dx-\frac {i (c+d x)^3}{3 d}\right )}{f}+\frac {2 (c+d x)^3 \tanh \left (\frac {e}{2}+\frac {f x}{2}+\frac {i \pi }{4}\right )}{f}}{2 a}\)

\(\Big \downarrow \) 2620

\(\displaystyle \frac {\frac {6 i d \left (-2 \left (\frac {2 i d \int (c+d x) \log \left (1+i e^{e+f x}\right )dx}{f}-\frac {i (c+d x)^2 \log \left (1+i e^{e+f x}\right )}{f}\right )-\frac {i (c+d x)^3}{3 d}\right )}{f}+\frac {2 (c+d x)^3 \tanh \left (\frac {e}{2}+\frac {f x}{2}+\frac {i \pi }{4}\right )}{f}}{2 a}\)

\(\Big \downarrow \) 3011

\(\displaystyle \frac {\frac {6 i d \left (-2 \left (\frac {2 i d \left (\frac {d \int \operatorname {PolyLog}\left (2,-i e^{e+f x}\right )dx}{f}-\frac {(c+d x) \operatorname {PolyLog}\left (2,-i e^{e+f x}\right )}{f}\right )}{f}-\frac {i (c+d x)^2 \log \left (1+i e^{e+f x}\right )}{f}\right )-\frac {i (c+d x)^3}{3 d}\right )}{f}+\frac {2 (c+d x)^3 \tanh \left (\frac {e}{2}+\frac {f x}{2}+\frac {i \pi }{4}\right )}{f}}{2 a}\)

\(\Big \downarrow \) 2720

\(\displaystyle \frac {\frac {6 i d \left (-2 \left (\frac {2 i d \left (\frac {d \int e^{-e-f x} \operatorname {PolyLog}\left (2,-i e^{e+f x}\right )de^{e+f x}}{f^2}-\frac {(c+d x) \operatorname {PolyLog}\left (2,-i e^{e+f x}\right )}{f}\right )}{f}-\frac {i (c+d x)^2 \log \left (1+i e^{e+f x}\right )}{f}\right )-\frac {i (c+d x)^3}{3 d}\right )}{f}+\frac {2 (c+d x)^3 \tanh \left (\frac {e}{2}+\frac {f x}{2}+\frac {i \pi }{4}\right )}{f}}{2 a}\)

\(\Big \downarrow \) 7143

\(\displaystyle \frac {\frac {6 i d \left (-2 \left (\frac {2 i d \left (\frac {d \operatorname {PolyLog}\left (3,-i e^{e+f x}\right )}{f^2}-\frac {(c+d x) \operatorname {PolyLog}\left (2,-i e^{e+f x}\right )}{f}\right )}{f}-\frac {i (c+d x)^2 \log \left (1+i e^{e+f x}\right )}{f}\right )-\frac {i (c+d x)^3}{3 d}\right )}{f}+\frac {2 (c+d x)^3 \tanh \left (\frac {e}{2}+\frac {f x}{2}+\frac {i \pi }{4}\right )}{f}}{2 a}\)

input
Int[(c + d*x)^3/(a + I*a*Sinh[e + f*x]),x]
 
output
(((6*I)*d*(((-1/3*I)*(c + d*x)^3)/d - 2*(((-I)*(c + d*x)^2*Log[1 + I*E^(e 
+ f*x)])/f + ((2*I)*d*(-(((c + d*x)*PolyLog[2, (-I)*E^(e + f*x)])/f) + (d* 
PolyLog[3, (-I)*E^(e + f*x)])/f^2))/f)))/f + (2*(c + d*x)^3*Tanh[e/2 + (I/ 
4)*Pi + (f*x)/2])/f)/(2*a)
 

3.2.8.3.1 Defintions of rubi rules used

rule 25
Int[-(Fx_), x_Symbol] :> Simp[Identity[-1]   Int[Fx, x], x]
 

rule 26
Int[(Complex[0, a_])*(Fx_), x_Symbol] :> Simp[(Complex[Identity[0], a])   I 
nt[Fx, x], x] /; FreeQ[a, x] && EqQ[a^2, 1]
 

rule 2620
Int[(((F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_.))/ 
((a_) + (b_.)*((F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)), x_Symbol] :> Simp 
[((c + d*x)^m/(b*f*g*n*Log[F]))*Log[1 + b*((F^(g*(e + f*x)))^n/a)], x] - Si 
mp[d*(m/(b*f*g*n*Log[F]))   Int[(c + d*x)^(m - 1)*Log[1 + b*((F^(g*(e + f*x 
)))^n/a)], x], x] /; FreeQ[{F, a, b, c, d, e, f, g, n}, x] && IGtQ[m, 0]
 

rule 2720
Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Simp[v/D[v, x] 
   Subst[Int[FunctionOfExponentialFunction[u, x]/x, x], x, v], x]] /; Funct 
ionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; FreeQ 
[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x)) 
*(F_)[v_] /; FreeQ[{a, b, c}, x] && InverseFunctionQ[F[x]]]
 

rule 3011
Int[Log[1 + (e_.)*((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(n_.)]*((f_.) + (g_.) 
*(x_))^(m_.), x_Symbol] :> Simp[(-(f + g*x)^m)*(PolyLog[2, (-e)*(F^(c*(a + 
b*x)))^n]/(b*c*n*Log[F])), x] + Simp[g*(m/(b*c*n*Log[F]))   Int[(f + g*x)^( 
m - 1)*PolyLog[2, (-e)*(F^(c*(a + b*x)))^n], x], x] /; FreeQ[{F, a, b, c, e 
, f, g, n}, x] && GtQ[m, 0]
 

rule 3042
Int[u_, x_Symbol] :> Int[DeactivateTrig[u, x], x] /; FunctionOfTrigOfLinear 
Q[u, x]
 

rule 3799
Int[((c_.) + (d_.)*(x_))^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(n_.) 
, x_Symbol] :> Simp[(2*a)^n   Int[(c + d*x)^m*Sin[(1/2)*(e + Pi*(a/(2*b))) 
+ f*(x/2)]^(2*n), x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && EqQ[a^2 - b^ 
2, 0] && IntegerQ[n] && (GtQ[n, 0] || IGtQ[m, 0])
 

rule 4199
Int[((c_.) + (d_.)*(x_))^(m_.)*tan[(e_.) + Pi*(k_.) + (Complex[0, fz_])*(f_ 
.)*(x_)], x_Symbol] :> Simp[(-I)*((c + d*x)^(m + 1)/(d*(m + 1))), x] + Simp 
[2*I   Int[((c + d*x)^m*(E^(2*((-I)*e + f*fz*x))/(1 + E^(2*((-I)*e + f*fz*x 
))/E^(2*I*k*Pi))))/E^(2*I*k*Pi), x], x] /; FreeQ[{c, d, e, f, fz}, x] && In 
tegerQ[4*k] && IGtQ[m, 0]
 

rule 4672
Int[csc[(e_.) + (f_.)*(x_)]^2*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp 
[(-(c + d*x)^m)*(Cot[e + f*x]/f), x] + Simp[d*(m/f)   Int[(c + d*x)^(m - 1) 
*Cot[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && GtQ[m, 0]
 

rule 7143
Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_S 
ymbol] :> Simp[PolyLog[n + 1, c*(a + b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d 
, e, n, p}, x] && EqQ[b*d, a*e]
 
3.2.8.4 Maple [B] (verified)

Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 434 vs. \(2 (119 ) = 238\).

Time = 1.44 (sec) , antiderivative size = 435, normalized size of antiderivative = 3.30

method result size
risch \(\frac {2 i \left (d^{3} x^{3}+3 c \,d^{2} x^{2}+3 d x \,c^{2}+c^{3}\right )}{f a \left ({\mathrm e}^{f x +e}-i\right )}+\frac {6 d^{2} c \,x^{2}}{a f}+\frac {2 d^{3} x^{3}}{a f}+\frac {12 d^{2} c e x}{a \,f^{2}}+\frac {6 d^{2} c \,e^{2}}{a \,f^{3}}+\frac {6 d^{3} \ln \left (1+i {\mathrm e}^{f x +e}\right ) e^{2}}{a \,f^{4}}-\frac {4 d^{3} e^{3}}{a \,f^{4}}-\frac {12 d^{3} \operatorname {polylog}\left (2, -i {\mathrm e}^{f x +e}\right ) x}{a \,f^{3}}-\frac {6 d^{3} \ln \left (1+i {\mathrm e}^{f x +e}\right ) x^{2}}{a \,f^{2}}+\frac {12 d^{3} \operatorname {polylog}\left (3, -i {\mathrm e}^{f x +e}\right )}{a \,f^{4}}-\frac {12 d^{2} c \ln \left (1+i {\mathrm e}^{f x +e}\right ) x}{a \,f^{2}}-\frac {6 d^{3} e^{2} \ln \left ({\mathrm e}^{f x +e}-i\right )}{a \,f^{4}}+\frac {6 d^{3} e^{2} \ln \left ({\mathrm e}^{f x +e}\right )}{a \,f^{4}}+\frac {12 d^{2} c e \ln \left ({\mathrm e}^{f x +e}-i\right )}{a \,f^{3}}-\frac {12 d^{2} c e \ln \left ({\mathrm e}^{f x +e}\right )}{a \,f^{3}}-\frac {6 d \ln \left ({\mathrm e}^{f x +e}-i\right ) c^{2}}{a \,f^{2}}-\frac {12 d^{2} c \ln \left (1+i {\mathrm e}^{f x +e}\right ) e}{a \,f^{3}}-\frac {12 d^{2} c \operatorname {polylog}\left (2, -i {\mathrm e}^{f x +e}\right )}{a \,f^{3}}-\frac {6 d^{3} e^{2} x}{a \,f^{3}}+\frac {6 d \ln \left ({\mathrm e}^{f x +e}\right ) c^{2}}{a \,f^{2}}\) \(435\)

input
int((d*x+c)^3/(a+I*a*sinh(f*x+e)),x,method=_RETURNVERBOSE)
 
output
2*I*(d^3*x^3+3*c*d^2*x^2+3*c^2*d*x+c^3)/f/a/(exp(f*x+e)-I)+6/a/f*d^2*c*x^2 
+2/a/f*d^3*x^3+12/a/f^2*d^2*c*e*x+6/a/f^3*d^2*c*e^2+6/a/f^4*d^3*ln(1+I*exp 
(f*x+e))*e^2-4/a/f^4*d^3*e^3-12/a/f^3*d^3*polylog(2,-I*exp(f*x+e))*x-6/a/f 
^2*d^3*ln(1+I*exp(f*x+e))*x^2+12*d^3*polylog(3,-I*exp(f*x+e))/a/f^4-12/a/f 
^2*d^2*c*ln(1+I*exp(f*x+e))*x-6/a/f^4*d^3*e^2*ln(exp(f*x+e)-I)+6/a/f^4*d^3 
*e^2*ln(exp(f*x+e))+12/a/f^3*d^2*c*e*ln(exp(f*x+e)-I)-12/a/f^3*d^2*c*e*ln( 
exp(f*x+e))-6/a/f^2*d*ln(exp(f*x+e)-I)*c^2-12/a/f^3*d^2*c*ln(1+I*exp(f*x+e 
))*e-12/a/f^3*d^2*c*polylog(2,-I*exp(f*x+e))-6/a/f^3*d^3*e^2*x+6/a/f^2*d*l 
n(exp(f*x+e))*c^2
 
3.2.8.5 Fricas [B] (verification not implemented)

Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 364 vs. \(2 (114) = 228\).

Time = 0.25 (sec) , antiderivative size = 364, normalized size of antiderivative = 2.76 \[ \int \frac {(c+d x)^3}{a+i a \sinh (e+f x)} \, dx=-\frac {2 \, {\left (i \, d^{3} e^{3} - 3 i \, c d^{2} e^{2} f + 3 i \, c^{2} d e f^{2} - i \, c^{3} f^{3} + 6 \, {\left (-i \, d^{3} f x - i \, c d^{2} f + {\left (d^{3} f x + c d^{2} f\right )} e^{\left (f x + e\right )}\right )} {\rm Li}_2\left (-i \, e^{\left (f x + e\right )}\right ) - {\left (d^{3} f^{3} x^{3} + 3 \, c d^{2} f^{3} x^{2} + 3 \, c^{2} d f^{3} x + d^{3} e^{3} - 3 \, c d^{2} e^{2} f + 3 \, c^{2} d e f^{2}\right )} e^{\left (f x + e\right )} + 3 \, {\left (-i \, d^{3} e^{2} + 2 i \, c d^{2} e f - i \, c^{2} d f^{2} + {\left (d^{3} e^{2} - 2 \, c d^{2} e f + c^{2} d f^{2}\right )} e^{\left (f x + e\right )}\right )} \log \left (e^{\left (f x + e\right )} - i\right ) + 3 \, {\left (-i \, d^{3} f^{2} x^{2} - 2 i \, c d^{2} f^{2} x + i \, d^{3} e^{2} - 2 i \, c d^{2} e f + {\left (d^{3} f^{2} x^{2} + 2 \, c d^{2} f^{2} x - d^{3} e^{2} + 2 \, c d^{2} e f\right )} e^{\left (f x + e\right )}\right )} \log \left (i \, e^{\left (f x + e\right )} + 1\right ) - 6 \, {\left (d^{3} e^{\left (f x + e\right )} - i \, d^{3}\right )} {\rm polylog}\left (3, -i \, e^{\left (f x + e\right )}\right )\right )}}{a f^{4} e^{\left (f x + e\right )} - i \, a f^{4}} \]

input
integrate((d*x+c)^3/(a+I*a*sinh(f*x+e)),x, algorithm="fricas")
 
output
-2*(I*d^3*e^3 - 3*I*c*d^2*e^2*f + 3*I*c^2*d*e*f^2 - I*c^3*f^3 + 6*(-I*d^3* 
f*x - I*c*d^2*f + (d^3*f*x + c*d^2*f)*e^(f*x + e))*dilog(-I*e^(f*x + e)) - 
 (d^3*f^3*x^3 + 3*c*d^2*f^3*x^2 + 3*c^2*d*f^3*x + d^3*e^3 - 3*c*d^2*e^2*f 
+ 3*c^2*d*e*f^2)*e^(f*x + e) + 3*(-I*d^3*e^2 + 2*I*c*d^2*e*f - I*c^2*d*f^2 
 + (d^3*e^2 - 2*c*d^2*e*f + c^2*d*f^2)*e^(f*x + e))*log(e^(f*x + e) - I) + 
 3*(-I*d^3*f^2*x^2 - 2*I*c*d^2*f^2*x + I*d^3*e^2 - 2*I*c*d^2*e*f + (d^3*f^ 
2*x^2 + 2*c*d^2*f^2*x - d^3*e^2 + 2*c*d^2*e*f)*e^(f*x + e))*log(I*e^(f*x + 
 e) + 1) - 6*(d^3*e^(f*x + e) - I*d^3)*polylog(3, -I*e^(f*x + e)))/(a*f^4* 
e^(f*x + e) - I*a*f^4)
 
3.2.8.6 Sympy [F]

\[ \int \frac {(c+d x)^3}{a+i a \sinh (e+f x)} \, dx=\frac {2 i c^{3} + 6 i c^{2} d x + 6 i c d^{2} x^{2} + 2 i d^{3} x^{3}}{a f e^{e} e^{f x} - i a f} - \frac {6 i d \left (\int \frac {c^{2}}{e^{e} e^{f x} - i}\, dx + \int \frac {d^{2} x^{2}}{e^{e} e^{f x} - i}\, dx + \int \frac {2 c d x}{e^{e} e^{f x} - i}\, dx\right )}{a f} \]

input
integrate((d*x+c)**3/(a+I*a*sinh(f*x+e)),x)
 
output
(2*I*c**3 + 6*I*c**2*d*x + 6*I*c*d**2*x**2 + 2*I*d**3*x**3)/(a*f*exp(e)*ex 
p(f*x) - I*a*f) - 6*I*d*(Integral(c**2/(exp(e)*exp(f*x) - I), x) + Integra 
l(d**2*x**2/(exp(e)*exp(f*x) - I), x) + Integral(2*c*d*x/(exp(e)*exp(f*x) 
- I), x))/(a*f)
 
3.2.8.7 Maxima [B] (verification not implemented)

Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 238 vs. \(2 (114) = 228\).

Time = 0.31 (sec) , antiderivative size = 238, normalized size of antiderivative = 1.80 \[ \int \frac {(c+d x)^3}{a+i a \sinh (e+f x)} \, dx=6 \, c^{2} d {\left (\frac {x e^{\left (f x + e\right )}}{a f e^{\left (f x + e\right )} - i \, a f} - \frac {\log \left ({\left (e^{\left (f x + e\right )} - i\right )} e^{\left (-e\right )}\right )}{a f^{2}}\right )} - \frac {2 \, c^{3}}{{\left (i \, a e^{\left (-f x - e\right )} - a\right )} f} - \frac {2 \, {\left (-i \, d^{3} x^{3} - 3 i \, c d^{2} x^{2}\right )}}{a f e^{\left (f x + e\right )} - i \, a f} - \frac {12 \, {\left (f x \log \left (i \, e^{\left (f x + e\right )} + 1\right ) + {\rm Li}_2\left (-i \, e^{\left (f x + e\right )}\right )\right )} c d^{2}}{a f^{3}} - \frac {6 \, {\left (f^{2} x^{2} \log \left (i \, e^{\left (f x + e\right )} + 1\right ) + 2 \, f x {\rm Li}_2\left (-i \, e^{\left (f x + e\right )}\right ) - 2 \, {\rm Li}_{3}(-i \, e^{\left (f x + e\right )})\right )} d^{3}}{a f^{4}} + \frac {2 \, {\left (d^{3} f^{3} x^{3} + 3 \, c d^{2} f^{3} x^{2}\right )}}{a f^{4}} \]

input
integrate((d*x+c)^3/(a+I*a*sinh(f*x+e)),x, algorithm="maxima")
 
output
6*c^2*d*(x*e^(f*x + e)/(a*f*e^(f*x + e) - I*a*f) - log((e^(f*x + e) - I)*e 
^(-e))/(a*f^2)) - 2*c^3/((I*a*e^(-f*x - e) - a)*f) - 2*(-I*d^3*x^3 - 3*I*c 
*d^2*x^2)/(a*f*e^(f*x + e) - I*a*f) - 12*(f*x*log(I*e^(f*x + e) + 1) + dil 
og(-I*e^(f*x + e)))*c*d^2/(a*f^3) - 6*(f^2*x^2*log(I*e^(f*x + e) + 1) + 2* 
f*x*dilog(-I*e^(f*x + e)) - 2*polylog(3, -I*e^(f*x + e)))*d^3/(a*f^4) + 2* 
(d^3*f^3*x^3 + 3*c*d^2*f^3*x^2)/(a*f^4)
 
3.2.8.8 Giac [F]

\[ \int \frac {(c+d x)^3}{a+i a \sinh (e+f x)} \, dx=\int { \frac {{\left (d x + c\right )}^{3}}{i \, a \sinh \left (f x + e\right ) + a} \,d x } \]

input
integrate((d*x+c)^3/(a+I*a*sinh(f*x+e)),x, algorithm="giac")
 
output
integrate((d*x + c)^3/(I*a*sinh(f*x + e) + a), x)
 
3.2.8.9 Mupad [F(-1)]

Timed out. \[ \int \frac {(c+d x)^3}{a+i a \sinh (e+f x)} \, dx=\int \frac {{\left (c+d\,x\right )}^3}{a+a\,\mathrm {sinh}\left (e+f\,x\right )\,1{}\mathrm {i}} \,d x \]

input
int((c + d*x)^3/(a + a*sinh(e + f*x)*1i),x)
 
output
int((c + d*x)^3/(a + a*sinh(e + f*x)*1i), x)